
from django.conf.urls import url
from django.contrib import admin

from app import views

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^base/$', views.base, name='base'),

    url(r'^mine/$',views.mine,name='mine'),     #我的八方
    url(r'^register/$', views.register, name='register'),
    url(r'^checkmobile/$', views.checkmobile, name='checkmobile'),
    url(r'^login/$', views.login, name='login'),
    url(r'^logout/$', views.logout, name='logout'),

    url(r'^cart/$', views.cart, name='cart'),
    url(r'^cart_count/$', views.cart_count, name='cart_count'),     #计算购物车总商品件数
    url(r'^product_details/$', views.product_details, name='product_detailsbase'),
    url(r'^pinglun/$', views.pinglun, name='pinglun'),
    url(r'^addgoods/$', views.addgoods, name='addgoods'),
    url(r'^admin/$', views.admin, name='admin'),
    url(r'^createCaoyao/$', views.creatCaoyao, name='createCaoyao'),
    url(r'^submitCaoyao/$', views.submitCaoyao, name='submitCaoyao'),
    url(r'^creatCaoyaokind/$', views.creatCaoyaokind, name='creatCaoyaokind'),
    url(r'^submitCaoyaoKind/$', views.submitCaoyaoKind, name='submitCaoyaoKind'),
    url(r'^modifyCaoyao/$', views.modifyCaoyao, name='modifyCaoyao'),
    url(r'^submitModifyCaoyao/$', views.submitModifyCaoyao, name='submitModifyCaoyao'),
    url(r'^modifyCaoyaoKind/$', views.modifyCaoyaoKind, name='modifyCaoyaoKind'),
    url(r'^submitModifyCaoyaoKind/$', views.submitModifyCaoyaoKind, name='submitModifyCaoyaoKind'),
    url(r'^deleteCaoyao/$', views.deleteCaoyao, name='deleteCaoyao'),
    url(r'^submitDeleteCaoyao/$', views.submitDeleteCaoyao, name='submitDeleteCaoyao'),
    url(r'^deleteCaoyaoKind/$', views.deleteCaoyaoKind, name='deleteCaoyaoKind'),
    url(r'^submitDeleteCaoyaoKind/$', views.submitDeleteCaoyaoKind, name='submitDeleteCaoyaoKind'),
    url(r'^modifyUser/$', views.modifyUser, name='modifyUser'),
    url(r'^submitModifyUser/$', views.submitModifyUser, name='submitModifyUser'),
    url(r'^deleteUser/$', views.deleteUser, name='deleteUser'),
    url(r'^submitDeleteUser/$', views.submitDeleteUser, name='submitDeleteUser'),
    url(r'^deletePinglun/$', views.deletePinglun, name='deletePinglun'),
    url(r'^submitDeletePinglun/$', views.submitDeletePinglun, name='submitDeletePinglun'),
    url(r'^search/$', views.search, name='search'),
    url(r'^yijianfankui/$', views.yijianfankui, name='yijianfankui'),
    url(r'^submitjiyijian/$', views.submitjiyijian, name='submitjiyijian'),
    url(r'^downloadFile/$', views.download_file, name='download_file'),
    url(r'^viewYijian/$', views.viewYijian, name='viewYijian'),
    url(r'^shoucang/$', views.shoucang, name='shoucang'),
    url(r'^modifyMe/$', views.modifyMe, name='modifyMe'),
    url(r'^submitModifyMe/$', views.submitModifyMe, name='submitModifyMe'),
    url(r'^MyShouCang/$', views.MyShouCang, name='MyShouCang'),
    url(r'^history/$', views.history, name='history'),



    url(r'^addcart/$', views.addcart, name='addcart'),
    url(r'^subcart/$', views.subcart, name='subcart'),
    url(r'^changecartselect/$', views.changecartselect, name='changecartselect'),
    url(r'^changecartall/$', views.changecartall, name='changecartall'),  # 全选/取消全选

    url(r'^generateorder/$',views.generateorder,name='generateorder'),
    url(r'^orderlist/$',views.orderlist,name='orderlist'),
    url(r'^orderdetail/(?P<identifier>\d+)/$',views.orderdetail,name='orderdetail'),

    url(r'^returnurl/$', views.returnurl, name='returnurl'),    # 支付成功后，客户端的显示
    url(r'^appnotifyurl/$', views.appnotifyurl, name='appnotifyurl'), # 支付成功后，订单的处理
    url(r'^pay/$', views.pay, name='pay'),  # 支付

]
